#ifndef LINEARANIMATION_H_
#define LINEARANIMATION_H_

#include "Animation.h"
#include "Position.h"

class LinearAnimation : public Animation
{
public:
    LinearAnimation(const Position& start, const Position& end, unsigned long duration);
    virtual ~LinearAnimation();

    virtual void update(double factor);
    virtual void render(const Position& parent);

private:
    Position start;
    Position end;
    Position current;
};

#endif
